package com.manager.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 目录对象 dirs
 *
 * @author tao
 * @date 2021-07-11
 */
public class Dirs implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 目录 ID
 */
    private Long id;

    /** 项目 id */
    private Long projectId;

    /** 上级目录 ID 主目录默认为0 */
    private Long pid;

    /** 目录等级为 1级 2级 3级 */
    private Integer level;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public Long getProjectId()
    {
        return projectId;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("pid", getPid())
            .append("level", getLevel())
            .toString();
    }
}
